package cn.yj.frame.proxy;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author 永健
 * @since 2022-01-18 17:14
 */
public class RpcReferenceFactoryBean implements FactoryBean {

    private Class<?> interfaceObj;

    public RpcReferenceFactoryBean(Class<?> interfaceObj) {
        this.interfaceObj = interfaceObj;
    }

    @Override
    public Object getObject() throws Exception {
        return RpcReferenceProxyFactory.createProxy(interfaceObj,"");
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }
}
